apt update
apt install rinetd
echo "0.0.0.0 31400 10.8.0.2 31400" > /etc/rinetd.conf
echo "0.0.0.0 31400 10.8.0.2 31400" >> /etc/rinetd.conf
echo "0.0.0.0 31401 10.8.0.2 31401" >> /etc/rinetd.conf
echo "0.0.0.0 31402 10.8.0.2 31402" >> /etc/rinetd.conf
echo "0.0.0.0 31403 10.8.0.2 31403" >> /etc/rinetd.conf
echo "0.0.0.0 31404 10.8.0.2 31404" >> /etc/rinetd.conf
echo "0.0.0.0 31405 10.8.0.2 31405" >> /etc/rinetd.conf
echo "0.0.0.0 31406 10.8.0.2 31406" >> /etc/rinetd.conf
echo "0.0.0.0 31407 10.8.0.2 31407" >> /etc/rinetd.conf
echo "0.0.0.0 31408 10.8.0.2 31408" >> /etc/rinetd.conf
echo "0.0.0.0 31409 10.8.0.2 31409" >> /etc/rinetd.conf
systemctl restart rinetd.service
systemctl status rinetd.service
